<?php
declare(strict_types=1);

namespace App\Common\Model\System;

use Zms\Basics\BasicsModel;
use Zms\HyperfCasts\{StrtotimeCasts};

/**
 * @property string $key 调用值
 * @property string $template_id 模板ID
 * @property string $content 模板内容
 * @property int $created_at 发送状态
 * @property int $updated_at 发送时间
 */
class SmsTemplateModel extends BasicsModel
{
    protected string $primaryKey = 'key';

    protected string $keyType = 'string';

    /**
     * The table associated with the model.
     */
    protected ?string $table = 'system_sms_template';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'created_at' => StrtotimeCasts::class,
        'updated_at' => StrtotimeCasts::class
    ];
}
